<include file="Public/head" />
</head>
<include file="Public/common_header" />
<div class="mian">
    <include file="Public/sidebar"  menu="nrgl.mdgl" />

    <div class="mianR">
        <h3 class="cha">门店管理</h3>
        <div class="xinzeng clearfix">
            <input type="button" value="新增门店" onclick="window.location.href = '{:U(\"StoreManage/add\")}';"/>
        </div>
        <div class="yuList">
             <div class="listBox" id="listBox"></div>
        </div>
    </div>
    <div class="clear"></div>
    <script type="text/javascript">
        get_list();
	function get_list(){
	    $.get("/StoreManage/store_list",function(data){
	    	$("#listBox").html(data);  
	    },"html");
	}

	function get_page(p){
	    $.get("/StoreManage/store_list", {'p':p}, function(data){
	    	$("#listBox").html(data);  
	    },"html");
	}
        function change_store_status(store_id, store_status) {
            var post_data = {store_id: store_id, store_status: store_status};
            $.post('/StoreManage/status_post', post_data, function (res) {
                if (res.code == 200) {
                    delay_alert('操作成功!');
                    setTimeout(function () {
                        window.location.reload();
                    }, 300);
                } else {
                    delay_alert(res.msg);
                }
            }, 'json');
            return false;
        }
        ;
    </script>
<include file="Public/foot" />
